<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>商品规格 - 添加规格</h3>
                <h5>添加商品规格</h5>
            </div>
        </div>
    </div>

    <div id="explanation" class="explanation">
        <div id="checkZoom" class="title"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示 - 规格名称最好不要超过4个字</h4>
            <span title="收起提示" id="explanationZoom"></span>
        </div>
        <ul>
            <li></li>
        </ul>
    </div>
    <form action="{:U('Spec/addSpec')}" method="post" class="form-horizontal" id="spec_form">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>规格名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" placeholder="名称" class="input-txt" name="s_name" value="" id="s_name">
                    <span class="err" id="s_name" style="color:#F00; display:none;"></span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <div class="bot"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);">确认提交</a></div>
        </div>
    </form>
</div>
<script>

    $("#submitBtn").click(function(){
        var s_name = $('#s_name').val();
        if (s_name == '') {
            layer.msg('请填写规格名称!',{icon:2, time:1000});
            return false;
        }
        $("#spec_form").submit();
    });
</script>
</body>
</html>